import {createRouter,createWebHistory} from 'vue-router'
import login from "../pages/login.vue"
import App from '../App.vue'
import home from '../pages/home.vue'
import register from '../pages/register.vue'

const router = createRouter({
	history:createWebHistory(),//工作模式 ，还有一种是hash
	routes:[
		{
			path:'/home',
			component:home
		},
		{
			path:'/login', //pages下的vue文件的路径
			component:login //pages下的vue文件
		},
		{
			path:'/register',
			component:register
		}
	]
})
export default router //向外抛出
